package com.sven;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class GpImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        // 这2个来加入到ioc容器之中
        return new String[]{FirstClass.class.getName(), SecondClass.class.getName()};
    }
}
